package com.sm.service.impl;

import com.sm.dao.UserDao;
import com.sm.pojo.User;
import com.sm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public User getById(Integer id) {
        return this.userDao.getById(id);
    }

    @Override
    public List<User> getAll() {
        return this.userDao.getAll();
    }

    @Override
    public Integer deleteUser(Integer id) {
        return this.userDao.deleteUser(id);
    }
}
